import request from '@/utils/request'

// 查询所有团队列表
export function listYYYbehindTeam(query) {
  return request({
    url: '/behindTeam/YYYbehindTeam/list',
    method: 'get',
    params: query
  })
}

// 查询所有团队详细
export function getYYYbehindTeam(teamId) {
  return request({
    url: '/behindTeam/YYYbehindTeam/' + teamId,
    method: 'get'
  })
}

// 新增所有团队
export function addYYYbehindTeam(data) {
  return request({
    url: '/behindTeam/YYYbehindTeam',
    method: 'post',
    data: data
  })
}

// 修改所有团队
export function updateYYYbehindTeam(data) {
  return request({
    url: '/behindTeam/YYYbehindTeam',
    method: 'put',
    data: data
  })
}

// 删除所有团队
export function delYYYbehindTeam(teamId) {
  return request({
    url: '/behindTeam/YYYbehindTeam/' + teamId,
    method: 'delete'
  })
}
